<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>主要内容区main</title>
    <!-- <link href="__PUBLIC__/Css/admin/css.css" type="text/css" rel="stylesheet" />
   <link href="__PUBLIC__/Css/admin/main.css" type="text/css" rel="stylesheet" /> -->
    <link rel="shortcut icon" href="__PUBLIC__/Images/admin/favicon.ico"/>
    <script type="text/javascript" src="__PUBLIC__/Js/admin/jquery.js"></script>
    <style>
        body {
            overflow-x: hidden;
            background: #f2f0f5;
            padding: 15px 0px 10px 5px;
        }

        ul li {
            list-style: none;
        }

        div {
            float: left;
        }
    </style>
    <style>
        body {
            overflow-x: hidden;
            background: #f2f0f5;
            padding: 15px 0px 10px 5px;
        }

        #searchmain {
            font-size: 12px;
        }

        #search {
            font-size: 12px;
            background: #548fc9;
            margin: 10px 10px 0 0;
            display: inline;
            width: 100%;
            color: #FFF;
            float: left
        }

        #search form span {
            height: 40px;
            line-height: 40px;
            padding: 0 0px 0 10px;
            float: left;
        }

        #search form input.text-word {
            height: 24px;
            line-height: 24px;
            width: 180px;
            margin: 8px 0 6px 0;
            padding: 0 0px 0 10px;
            float: left;
            border: 1px solid #FFF;
        }

        #search form input.text-but {
            height: 24px;
            line-height: 24px;
            width: 55px;
            background: url(images/main/list_input.jpg) no-repeat left top;
            border: none;
            cursor: pointer;
            font-family: "Microsoft YaHei", "Tahoma", "Arial", '宋体';
            color: #666;
            float: left;
            margin: 8px 0 0 6px;
            display: inline;
        }

        #search a.add {
            background: url(__PUBLIC__/Images/admin/add.jpg) no-repeat -3px 7px #548fc9;
            padding: 0 10px 0 26px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
            font-weight: bold;
            color: #FFF;
            float: right
        }

        #search a:hover.add {
            text-decoration: underline;
            color: #d2e9ff;
        }

        #main-tab {
            border: 1px solid #eaeaea;
            background: #FFF;
            font-size: 12px;
        }

        #main-tab th {
            font-size: 12px;
            background: url(__PUBLIC__/Images/admin/list_bg.jpg) repeat-x;
            height: 32px;
            line-height: 32px;
        }

        #main-tab td {
            font-size: 12px;
            line-height: 40px;
        }

        #main-tab td a {
            font-size: 12px;
            color: #548fc9;
        }

        #main-tab td a:hover {
            color: #565656;
            text-decoration: underline;
        }

        .bordertop {
            border-top: 1px solid #ebebeb
        }

        .borderright {
            border-right: 1px solid #ebebeb
        }

        .borderbottom {
            border-bottom: 1px solid #ebebeb
        }

        .borderleft {
            border-left: 1px solid #ebebeb
        }

        .gray {
            color: #dbdbdb;
        }

        td.fenye {
            padding: 10px 0 0 0;
            text-align: right;
        }

        .bggray {
            background: #f9f9f9
        }
    </style>
</head>
<body>
<!--main_top-->
<table width="99%" border="0" cellspacing="0" cellpadding="0" id="searchmain">
    <tr>
        <td width="99%" align="left" valign="top">您的位置：添加协议</td>
    </tr>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="main-tab">
            <form method="post" id='form' action="__MODULE__/Demand/demand_update?id={$demandinfo.dmid}" enctype="multipart/form-data">
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求标题</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="amtitle" value="{$demandinfo.dmtitle}"/>
                </td>
                <td><span id="span1"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求价位</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                    <select name="spreadid">
                    <option value="1" <if condition="$demandinfo.spreadid == 1">selected</if>>0-200</option>
                	<option value="2" <if condition="$demandinfo.spreadid == 2">selected</if>>200-500</option>
                	<option value="3" <if condition="$demandinfo.spreadid == 3">selected</if>>500-1000</option>
                	<option value="4" <if condition="$demandinfo.spreadid == 4">selected</if>>1000-3000</option>
                	<option value="5" <if condition="$demandinfo.spreadid == 5">selected</if>>3000以上</option>
                	</select>
                </td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求标签</td>
                <td align="left" valign="middle" class="borderright borderbottom">
		            {$demandinfo.tagid}
                </td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求地点</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="address" value="{$demandinfo.address}"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求人数</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="dmpeople" value="{$demandinfo.dmpeople}"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求性别</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="radio" name="sex" value="0" <if condition="$demandinfo.sex == 0">checked</if>/>男
                	<input type="radio" name="sex" value="1" <if condition="$demandinfo.sex == 1">checked</if>/>女
                	<input type="radio" name="sex" value="2" <if condition="$demandinfo.sex == 2">checked</if>/>不限
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求身高</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<select name="dmheight">
                		<option value="160以下" <if condition="$demandinfo.dmheight == '160以下'">selected</if>>160以下</option>
                		<option value="160-165" <if condition="$demandinfo.dmheight == '160-165'">selected</if>>160-165</option>
                		<option value="165-170" <if condition="$demandinfo.dmheight == '165-170'">selected</if>>165-170</option>
                		<option value="170-175" <if condition="$demandinfo.dmheight == '170-175'">selected</if>>170-175</option>
                		<option value="175-180" <if condition="$demandinfo.dmheight == '175-180'">selected</if>>175-180</option>
                		<option value="180以上" <if condition="$demandinfo.dmheight == '180以上'">selected</if>>180以上</option>
                	</select>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">报名截止时间</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input name="applystime" value="{$demandinfo.applystime}"/>
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求认证类型</td>
                <td align="left" valign="middle" class="borderright borderbottom"> 
                	<input type="radio" name="dtttype" value="1" <if condition="$demandinfo.dtttype  == 1">checked</if>/>已认证
                	<input type="radio" name="dtttype" value="2" <if condition="$demandinfo.dtttype  == 2">checked</if>/>未认证
                	<input type="radio" name="dtttype" value="3" <if condition="$demandinfo.dtttype  == 3">checked</if>/>不限  
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求类型</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<input type="radio" name="dmtype" value="1" <if condition="$demandinfo.dmtype  == 1">checked</if>/>公司
                	<input type="radio" name="dmtype" value="2" <if condition="$demandinfo.dmtype  == 2">checked</if>/>个人
                	<input type="radio" name="dmtype" value="3" <if condition="$demandinfo.dmtype  == 3">checked</if>/>不限
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求海报</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<if condition="$demandinfo.dmimg == ''">
                		无图片
                	<else />
                		有图片<input type="file" name="dmimg" value="__PUBLIC__/Uploads/{$demandinfo.dmimg}"/><a href="__PUBLIC__/Uploads/images/{$demandinfo.dmimg}.jpg">查看原图片</a>
                	</if>
                </td>
            </tr>
            <tr>
                <td align="right" valign="middle" class="borderright borderbottom">需求详情</td>
                <td align="left" valign="middle" class="borderright borderbottom">
                	<textarea  name="dmcontent" cols="50" rows="10">{$demandinfo.dmcontent}</textarea> 
                </td>
                <td><span id="span2"></span></td>
            </tr>
            <tr>
            	<td></td>
            	<td>
            		<input type="submit" value="修改"/>&nbsp;&nbsp;&nbsp;
            		<input type="reset" value="取消"/>
            	</td>
            </tr>                  
            </form>
        </table>
</table>
</body>
</html>
